package de.szut.tree;

import java.util.AbstractMap;
import java.util.Map.Entry;

/**
 * Entry in a tree
 * @author Marc Huisinga
 *
 * @param <K> - Type of the key in this entry
 * @param <V> - Type of the value in this entry
 */
public class TreeEntry<K, V> extends AbstractMap.SimpleEntry<K, V> {

	private static final long serialVersionUID = 7585192086028980632L;

	/**
	 * Constructor
	 * @param key - key of this entry
	 * @param value - value of this entry
	 */
	public TreeEntry(K key, V value) {
		super(key, value);
	}
	
	public TreeEntry(Entry<K, V> entry) {
		this(entry.getKey(), entry.getValue());
	}

}
